/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Raytracing;

import processing.core.PVector;

/**
 *
 * @author Matt
 */
public abstract class Fresnel {
  
    public abstract PVector getFresnel(float angle);  
  
    public static float schlick(float cosT){
        float R0= .8f;
        
        float num = 1-cosT;
        num = num*num*num*num*num;
        return R0 + (1-R0)*(num); 
    }
  
}
